#ifndef FTKTAB_H
#define FTKTAB_H

#include <QTabWidget>
#include "widgettree.h"
#include "ftk_xul.h"

class FtkTab : public QTabWidget
{
    friend class FtkXul;

    Q_OBJECT
public:
    explicit FtkTab(WidgetTree *tree, QDomElement &element, QTreeWidgetItem *item, QWidget *parent = 0);
    ~FtkTab();

protected:
    void dragEnterEvent(QDragEnterEvent *event);
    void dragLeaveEvent(QDragLeaveEvent *event);
    void dragMoveEvent(QDragMoveEvent *event);
    void dropEvent(QDropEvent *event);
    void mousePressEvent(QMouseEvent *event);
    void mouseMoveEvent(QMouseEvent *event);

private:
    int tabCount;
    QPoint dragPosition;
    WidgetTree *tree;
    QTreeWidgetItem *item;
    QDomElement element;

signals:

public slots:

};

#endif // FTKTAB_H
